<template>
  <div class="content">
    <div class="column1">
      <el-button>
        <el-icon>
          <RefreshRight />
        </el-icon>
        刷新列表
      </el-button>
      <el-button type="primary">
        <el-icon>
          <Plus />
        </el-icon>
        添加脚本
      </el-button>
      <el-button type="primary">
        <el-icon>
          <Delete />
        </el-icon>
        删除文件
      </el-button>
      <el-table style="width: 100%;margin-top: 20px;">
        <el-table-column type="selection" width="40"></el-table-column>
        <el-table-column prop="" label="文件名称"></el-table-column>
        <el-table-column prop="" label="计算后"></el-table-column>
        <el-table-column prop="" label="更新时间"></el-table-column>
        <el-table-column prop="" label="计算状态"></el-table-column>
        <el-table-column label="操作">
          <template>
            <el-button size="small" type="primary">编辑</el-button>
            <el-button size="small" type="danger">查看</el-button>
          </template>
        </el-table-column>
      </el-table>
      <el-pagination :total="total" layout="prev, pager, next"></el-pagination>
    </div>
    <div class="column2">
      <div class="line1">
        <el-button type="danger">保存代码</el-button>
        <el-button type="success">运行代码</el-button>
        <el-button>格式化代码</el-button>
        <el-button>撤销</el-button>
        <el-button>回退</el-button>
        <el-button>清除日记</el-button>
        <div class="box1"></div>
      </div>
      <div class="line2">
        <h2>运行日志</h2>
        <div class="box2"></div>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import { RefreshRight, Delete, Plus } from '@element-plus/icons-vue'
// 分页
const total = ref(0)
</script>

<style scoped>
.content {
  width: 100%;
  /* height: 100%; */
  display: flex;
  font-size: 14px;
}

.column1 {
  width: 50%;
  height: 100%;
  padding: 20px;
  background-color: #ffffff;
  margin-right: 10px;
}

.el-icon {
  margin-right: 5px;
  font-size: large;
}

:deep(.el-table) {
  border: 1px solid #ebeef5;
}

:deep(.el-table th) {
  background-color: #f5f7fa;
  color: #101010;
  font-weight: 600;
  text-align: center;
}

:deep(.el-table td) {
  padding: 12px 0;
}

:deep(.el-button) {
  margin-right: 8px;
}

.column2 {
  width: 50%;
  height: 100%;
  padding: 20px;
}
.box1,
.box2{
  height: 600px;
  background-color: #ffffff;
  margin: 10px 0;
}
.box2{
  height: 200px;
  background-color: #ffffff;
  margin-top: 10px;
}

</style>
